//
//  JFConstant.h
//  JobFree2.0
//
//  Created by Dale on 2017/6/7.
//  Copyright © 2017年 Dale. All rights reserved.
//

#ifndef JFConstant_h
#define JFConstant_h

typedef NS_ENUM(NSUInteger, ESideButtonTag) {
    ESideSettingTag = 0,
    ESideScrumTag = 2017,
    ESideFriendTag = 2018,
    ESideFeedBackTag = 2019,
};

typedef NS_ENUM(NSUInteger, EMainMenu) {
    EMainMenuScrum = 0,
    EMainMenuFriend,
    EMainMenuSetting,
    EMainMenuFeedBack,
};


//MARK: 服务器地址
static NSString *const outernet = @"http://172.19.26.16:3000";
static NSString *const intranet = @"http://192.168.0.104:3000";

//MARK: 网络返回Key
static NSString *const CODE = @"code";
static NSString *const MESSAGE = @"message";
static NSString *const SUCCESS = @"success";
static NSString *const OBJ = @"obj";
static NSString *const TOKEN = @"token";
static NSString *const DATA = @"data";
static NSString *const SERVICEVERSION = @"  ";
static NSString *const DESCRIPTION = @"description";
static NSString *const NETWORKERROR = @"您的网络好像有问题~";

//MARK: 微信相关
#define WX_AppID @"wxefa1088ec645cc8a"  //注册微信时的AppID  Cehua:wx6103c7337b6114c0 JobFree:wxefa1088ec645cc8a
#define WX_AppSecret @"afadc6f3c636cecba1209a2178eab481" // 注册时得到的AppSecret Cehua: 822233ed08a3484e00ff4f10d8608c1a JobFree:afadc6f3c636cecba1209a2178eab481
#define WX_ACCESS_TOKEN @"access_token"
#define WX_OPEN_ID @"openid"
#define WX_REFRESH_TOKEN @"refresh_token"
#define WX_UNION_ID @"unionid"
#define WX_BASE_URL @"https://api.weixin.qq.com/sns"


//GeTui
static NSString *const gtAppId = @"UjFugTmQoT9G8JF6sXjL2";
static NSString *const gtAppSecret = @"Xyb4lx4MSo6kTXViKnysq3";
static NSString *const gtAppKey = @"jI9Yl8CRXlAAzBItwt7OK6";
static NSString *const gtMasterSecret = @"Vt2Cs6G2zy9lhkTVbXE2a";

//new message notification
static NSString *const ALLOW_USER_KEY_PLAY_SHAKE = @"USER_KEY_PLAY_SHAKE";
static NSString *const ALLOW_USER_KEY_PLAY_AUDIO = @"USER_KEY_PLAY_AUDIO";
static NSString *const ALLOW_USER_KEY_SHOW_MESSAGE = @"USER_KEY_SHOW_MESSAGE";

NSString *jfClientID;//client id
BOOL isRefrsh;

#endif /* JFConstant_h */
